/*
 * @Author: ganjiejie 8025279+ganjiejie@user.noreply.gitee.com
 * @Date: 2025-05-08 08:41:29
 * @LastEditors: ganjiejie 8025279+ganjiejie@user.noreply.gitee.com
 * @LastEditTime: 2025-05-13 17:01:48
 * @FilePath: \gj-vite-vue3-ts-pinia\src\views\proxy.js
 * @Description: 
 * 
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved. 
 */
const obj ={
    name:"我是星期四",
    age:20,
    city:"pune"
}
const handler = {
    get(target,prop,recevier){
        console.log(target,prop,recevier)   
        return target[prop]
    },
    set(target,prop,value,recevier){
        console.log(target,prop,value,recevier)
        return target[prop]=value
    }
}
const proxy = new Proxy(obj,handler)

proxy.name="我是星期五"

console.log(proxy.name)